
<nav class="public-nav-layout <?php if($channel) {echo 'channel-'.$channel['channel_style'].' channel-'.$channel['channel_id'];} ?>">
  	<div class="wrapper">
	    <div class="all-category">
	    	{include file="common/all_nav" /}
	    </div>
    	<ul class="site-menu">
      		<li>
      			<a href="{:url('home/Index/index')}" {if (FU_current_module() == 'home' && FU_current_controller() == 'Index' && FU_current_action() == 'index')} class="current"{/if}>
      				<span>首页</span>
      			</a>
      		</li>
      		{volist name="nav_list" id="nav"}
      			{if $nav['nav_location'] == '1'}
      				<li>
      					<a
      						{if $nav['nav_new_open']}
      							target="_blank"
      						{/if}
      						
      						{switch name="nav['nav_type']"}
							    {case value="0"}
							    	href="{$nav['nav_url']}"
							    	{if (FU_current_url() == get_root_url().$nav['nav_url'])}
					                    class="current"
					                {/if}
							    {/case}
							    {case value="1"}
							    	href="{:url('Search/index',array('cate_id'=>$nav['item_id']))}";
					                {if (isset($_GET['cate_id']) && $_GET['cate_id'] == $nav['item_id'])}
					                    class="current"
					                {/if}
							    {/case}
							    {case value="2"}
							    	href="{:url('Article/article_list',array('ac_id'=>$nav['item_id']))}"
					                {if (isset($_GET['ac_id']) && $_GET['ac_id'] == $nav['item_id'])}
					                    class="current"
					                {/if}
							    {/case}
							    {case value="3"}
							    	href="{:url('Activity/index',array('activity_id'=>$nav['item_id']))}"
					                {if (isset($_GET['activity_id']) && $_GET['activity_id'] == $nav['item_id'])}
					                    class="current"
					                {/if}
							    {/case}
							{/switch}
      						
      					>
      						{$nav['nav_title']}
	      				</a>
	        		</li>
      			{/if}
      		{/volist}
    		<i id="right-bar"></i>
    	</ul>
  	</div>
  	
  	
  	<div class="right-sidebar" style="display: none;">
        <div class="right-bannder-content">
            <div class="right-sidebar-login">
                <a class="touXiang" href="#">
                	{if session('avatar')}
		      			<img src="{:session('avatar')}">
		      		{else /}
		      			<img src="__UPLOAD_PATH__/shop/common/default_user_portrait.gif">
		      		{/if}
                </a>
                
                {if session('is_login')}
                	<p>
                		<span> 
		                	<a style="font-size: 14px;color: #fff;" href="{:url('Member/home')}">{:session('member_name')}</a>
			      			{if ($member_info['level_name'])}
			      				<!--<div class="nc-grade-mini" style="cursor:pointer;" onclick="javascript:go('{:url('Pointgrade/index')}');">{$member_info['level_name']}</div>-->
			      			{/if}
			      		</span>
                		
                	</p>
                	<p>欢迎来到云南康乐茶网！</p>
	      		{else /}
	      			<p>Hi,欢迎来到云南康乐茶网！</p>
		      		<div class="login-btn">
	                    <a href="{:url('member/Login/index')}">请登录</a>
	                    <a href="{:url('member/Login/register')}">注册</a>
	                </div>
	      		{/if} 
            </div>
            
            <div class="right-bar-icon">
                <ul>
                    <li>
                        <a href="{:url('member/Goodsbrowse/index')}">
                            <i class="icon kangle-icon">&#xe926;</i>我的浏览
                        </a>
                    </li>
                    <li>
                        <a href="{:url('member/Favoritegoods/index')}">
                            <i class="icon kangle-icon">&#xe68e;</i>我的收藏
                        </a>
                    </li>
                    <li>
                        <a href="{:url('member/Order/index')}">
                            <i class="icon kangle-icon">&#xe623;</i>我的订单
                        </a>
                    </li>
                    <li>
                        <a href="{:url('member/Security/index')}">
                            <i class="icon kangle-icon">&#xe611;</i> 账号安全
                        </a>
                    </li>
                    <li>
                        <a href="{:url('member/Information/member')}">
                            <i class="icon kangle-icon">&#xe600;</i> 账户信息
                        </a>
                    </li>
                    <li>
                        <a href="{:url('shop/Showjoinin/index')}">
                            <i class="icon kangle-icon">&#xe602;</i>商家入驻
                        </a>
                    </li>
                </ul>
            </div>
            <div class="right-bar-news">
                <h3>商城公告</h3>
                <ul>
                	{volist name="show_article" id="val"}
                		<li>
	          				<a target="_blank" href="{if empty($val['article_url'])} {:url('home/Article/show',array('article_id'=>$val['article_id']))} {else /} {$val['article_url']} {/if}" title="{$val['article_title']}">
	          					{:str_cut($val['article_title'],16)} 
	          					[{:date('Y-m-d',$val['article_time'])}]
	          				</a>
	          			</li>
                	{/volist}
    			</ul>
            </div>
        </div>
    </div>
  	
  	
</nav>


    
<script type="text/javascript">
    $(document).ready(function(){
        $("#right-bar").click(function(){
            $(".right-sidebar").slideToggle();
        });
    });
</script>
